<div class="good_sale">
    <div class="history">
        <a href="#default/main">首页</a>
        &gt;
        <span>{{$Cache.goods_info.type}}</span>
    </div>
    {{#include '/pages/default/public_left.html'}}

    <div class="right">
        <div class="toppage">
           {{#if $Cache.current_page_num!=0}}
            <a href="#default/goods_list?id={{$Top.$Cahce.goods_list_type}}&page={{$Cache.current_page_num-1}}&num={{$Cache.goods_pre_num}}" class="pagenum focus" name="prepage" title="前一页" href="#default/goods_list">◀</a>
            {{/if}}

            {{#each $Cache.page_num}}
                {{#if $Index==$Top.$Cache.current_page_num}}
                [当前页：{{~~$Index+1}}]
                {{#else}}
                <a class="pagenum" href="#default/goods_list?id={{$Top.$Cahce.goods_list_type}}&page={{$Index}}&num={{$Top.$Cache.goods_pre_num}}">
                <span>{{~~$Index+1}}</span>
                </a>
                {{/if}}
            {{/each}}

            {{#if $Cache.current_page_num+1 < $Cache.page_num.length}}
            <a href="#default/goods_list?id={{$Top.$Cahce.goods_list_type}}&page={{$Cache.current_page_num+1}}&num={{$Cache.goods_pre_num}}" class="pagenum" name="nextpage" title="后一页" >▶</a>
            {{/if}}
        </div>

        <div class="listbox">
           {{#each goods}}
                <goodsitem
                    href="#default/goods_details?id={{_id}}"
                    src = "{{preview_img_url}}?imageView/1/w/130/h/130"
                    goodsname="{{goods_name}}"
                    decoration="{{intro}}"
                    price="{{price}}"
                ></goodsitem>
            {{/each}}
        </div>

        <div class="bottompage">
           {{#each $Cache.page_num}}
                {{#if $Index==$Top.$Cache.current_page_num}}
                [当前页：{{~~$Index+1}}]
                {{#else}}
                <a class="pagenum" href="#default/goods_list?id={{$Top.$Cahce.goods_list_type}}&page={{$Index}}&num={{$Top.$Cache.goods_pre_num}}">
                <span>{{~~$Index+1}}</span>
                </a>
                {{/if}}
            {{/each}}

            {{#if $Cache.current_page_num+1 < $Cache.page_num.length}}
            <a href="#default/goods_list?id={{$Top.$Cahce.goods_list_type}}&page={{$Cache.current_page_num+1}}&num={{$Cache.goods_pre_num}}" class="pagenum" name="nextpage" title="后一页" >▶</a>
            {{/if}}
        </div>
    </div>
</div>
